const express = require('express')
const app = express()

app.get('/login', function (req, res) {
  console.log(req, res, 'jjjj')
  res.send({name: 'jjj', bb: 1111})
})
//3.启动web服务器
const server = app.listen(1212, () => {
    console.log('express server running at http://127.0.0.1')
})

server.on('error', (error) => {
  if (error.code === 'EADDRINUSE') {
    console.error('端口被占用，请更换端口！');
  }
});
